Add copyright notice and g/c some unused code.
authorcl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 7 Sep 2005 12:49:52 +0000 (12:49 +0000)
committercl349@firebug.cl.cam.ac.uk <cl349@firebug.cl.cam.ac.uk>
Wed, 7 Sep 2005 12:49:52 +0000 (12:49 +0000)
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
tools/python/xen/xend/xenstore/xswatch.py

index 970822c6ea86411f2136669547d7dec2c0bd84d7..87b79ee7d612135e5775e876bda6ecab324c4b8b 100644 (file)
@@ -1,3 +1,8 @@
+# Copyright (C) 2005 Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
+
+# This file is subject to the terms and conditions of the GNU General
+# Public License.  See the file "COPYING" in the main directory of
+# this archive for more details.
 
 import select
 import threading
@@ -9,7 +14,6 @@ class xswatch:
     threadcond = threading.Condition()
     xs = None
     xslock = threading.Lock()
-    watches = []
     
     def __init__(self, path, fn, args=(), kwargs={}):
         self.fn = fn
@@ -19,7 +23,6 @@ class xswatch:
         xswatch.xslock.acquire()
         xswatch.xs.watch(path, self)
         xswatch.xslock.release()
-        xswatch.watches.append(self)
 
     def watchStart(cls):
         cls.threadcond.acquire()